package reflect;
/**
 * 使用当前类测试反射机制
 * @author pc
 *
 */
public class Person {
	public void sayHello() {
		System.out.println("Person:hello!");
	}
	
	public void say(String info) {
		System.out.println("Person:" + info);
	}
	
	public void say(String name,int age) {
		System.out.println("Person:大家好我是"+name+",我今年"+age);
	}
	
	private void dosome() {
		System.out.println("我是Person的私有方法dosome!");
	}
}








